package com.example.summer_pro.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.Proxy;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;

@Entity
@Data
@IdClass(NormalKey.class)
@AllArgsConstructor
@NoArgsConstructor
public class Normal {

    @Id
    @Column(name = "q_id")
    private Integer q_id;

    @Id
    @Column(name = "t_id")
    private Integer t_id;

    private String q_type;
    private Integer t_num;
    private Integer num_options;
    private String grades;
    private String t_type;
    private String content;
    private boolean necessity;
}
